package com.heima.wemedia.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.heima.model.common.dtos.ResponseResult;
import com.heima.model.wemedia.dtos.SensitiveDto;
import com.heima.model.wemedia.pojos.WmSensitive;

public interface WmSensitiveService extends IService<WmSensitive> {

    /**
     * 删除敏感词
     *
     * @param id
     * @return
     */
    ResponseResult deleteSensitive(Integer id);

    /**
     * 查询列表
     *
     * @param dto
     * @return
     */
    ResponseResult getList(SensitiveDto dto);

    /**
     * 保存敏感词
     *
     * @param wmSensitive
     * @return
     */
    ResponseResult getSave(WmSensitive wmSensitive);

    /**
     * 修改
     *
     * @param wmSensitive
     * @return
     */

    ResponseResult getUpdate(WmSensitive wmSensitive);
}
